﻿using MesBSW.DAL;
using MesBSW.View;
using System;
using System.Data.Entity.Infrastructure.Interception;
using System.Windows.Forms;

namespace MesBSW
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            DbInterception.Add(new MyCommandInterceptor());
            LoginFrm loginFrm = new LoginFrm();
            if (loginFrm.ShowDialog() == DialogResult.OK)
            {
                Application.Run(new MainFrm(loginFrm.tmpBean, loginFrm.CurrLanguage));
            };
        }
    }
}
